﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

/// <summary>
/// 属性面板头像
/// </summary>
public class Avatar : MonoBehaviour, IPointerClickHandler {

    // Use this for initialization
    void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}

    public void OnPointerClick(PointerEventData eventData) {
        ArticleManager articleManager = ArticleManager.Instance;
        if (!articleManager.PickUpArticle.IsPickUp) {
            print("没有拿起物品");
            return;
        }
        ArticleManager.Instance.UseArticle();
    }
}
